Concurrency with Modern C++ by Rainer Grimm
Author:Rainer Grimm [Rainer Grimm]
Language: eng
Format: epub, pdf, mobi
Publisher: leanpub.com
Published: 2017-06-20T00:00:00+00:00
The numbers give a clear indication. The Meyers Singleton is the fastest one. It is not only the fastest one, but it is also the easiest one to get. The Meyers Singleton is about two times faster than the atomic versions. As expected the synchronisation with the lock is the most heavyweight and, therefore, the slowest. std::call_once in particular on Windows is a lot slower than on Linux.
Performance of all singleton implementations Operating System (Compiler) Single Threaded Meyers Singleton std::lock_guard std::call_once Sequential Consistency Acquire-Release Semantic
Linux (GCC) 0.03 0.04 12.47 0.22 0.09 0.07
Windows (cl.exe) 0.02 0.03 15.48 1.74 0.07 0.07
I want to stress one point about the numbers explicitly. These are the summed up numbers for all four threads. That means that we get optimal concurrency with the Meyers Singleton because the Meyers Singleton is nearly as fast as the single threaded implementation.
Download
Concurrency with Modern C++ by Rainer Grimm.pdf
Concurrency with Modern C++ by Rainer Grimm.mobi
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
| Anthropology | Archaeology |
| Philosophy | Politics & Government |
| Social Sciences | Sociology |
| Women's Studies |
Cecilia; Or, Memoirs of an Heiress — Volume 1 by Fanny Burney(32527)
Cecilia; Or, Memoirs of an Heiress — Volume 2 by Fanny Burney(31928)
Cecilia; Or, Memoirs of an Heiress — Volume 3 by Fanny Burney(31915)
The Great Music City by Andrea Baker(31898)
We're Going to Need More Wine by Gabrielle Union(19020)
All the Missing Girls by Megan Miranda(15888)
Pimp by Iceberg Slim(14464)
Bombshells: Glamour Girls of a Lifetime by Sullivan Steve(14037)
For the Love of Europe by Rick Steves(13810)
Talking to Strangers by Malcolm Gladwell(13330)
Norse Mythology by Gaiman Neil(13314)
Fifty Shades Freed by E L James(13215)
Mindhunter: Inside the FBI's Elite Serial Crime Unit by John E. Douglas & Mark Olshaker(9289)
Crazy Rich Asians by Kevin Kwan(9261)
The Lost Art of Listening by Michael P. Nichols(7475)
Enlightenment Now: The Case for Reason, Science, Humanism, and Progress by Steven Pinker(7287)
The Four Agreements by Don Miguel Ruiz(6728)
Bad Blood by John Carreyrou(6599)
Weapons of Math Destruction by Cathy O'Neil(6248)